﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>评论</title>
    <link href="/CSS/bootstrap3.3.5/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="/CSS/font-awesome-4.3.0/css/font-awesome.css?v=4.3.0" rel="stylesheet">
    <link href="/CSS/V3/style.css?v=2.2.0" rel="stylesheet">
    <script src="/Scripts/jquery-1.11.2.min.js"></script>
    <script src="/JqueryPlug/laypage/laypage.js"></script>
    <script src="/Scripts/avalon.js"></script>
    <script src="/Scripts/SZHLCommon.js?jsver=5"></script>
    <script>
        var model = avalon.define({
            $id: "answer",
            username: ComFunJS.getnowuser(),
            ID: ComFunJS.getQueryString("ID", 0),
            hfnr: {},
            hfData: { "Type": "1", "ZXID": ComFunJS.getQueryString("ID", 0), "HFContent": "", "Status": "0", "intProcessStanceid": "0", "Files": "" },
            AddHF: function () {

                if (!model.hfData.HFContent) {
                    parent.ComFunJS.winwarning("请输入回复内容");
                    return "";
                }
                $.post('/API/FTAPI.ashx?Action=ADDZXZXITEM', { "P1": JSON.stringify(model.hfData.$model) }, function (result) {
                    var result = $.parseJSON(result);
                    if (result.ErrorMsg == "") {
                        model.hfnr = result.Result[0];
                    }

                })
            }
        });
        avalon.ready(function () {
            ComFunJS.initForm();
            $.ajaxSetup({
                async: false
            });
        })
        function gethf() {
            model.AddHF();
            return model.hfnr;
        }
    </script>
</head>
<body class="gray-bg" ms-controller="answer">

    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">

            <div class="col-sm-12">
                <div>
                    回复：
                    <div>
                        <textarea class="form-control" autofocus="autofocus" ms-duplex="hfData.HFContent" placeholder="填写回复..." style="height:200px"></textarea>
                    </div>
                </div>
                <div>
                    附件：
                    <div>
                        <input type="text" value="" class="span2  szhl_Upload form-control" ms-duplex="hfData.Files" style="display:none" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
